﻿
@*
    For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<!-- #region 对象返回 -->
@* @model _12Net8AspNetCore_MVC.Models.Product
商品首页
ID:@Model.ID
名称:@Model.Name *@

<!-- #endregion -->
<!-- #region 集合对象返回 -->
@using _12Net8AspNetCore_MVC.Models
@model List<Product>
商品首页

@foreach (var product in Model)
{
    <div>
        ID:@product.ID
        名称:@product.Name
    </div>
}


<!-- #endregion -->